/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.page.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wealth.page.entity.Floor;
import com.wealth.page.repository.FloorDao;
import com.wealth.page.service.IFloorService;

import iaas.service.impl.BaseServiceImpl;

/**
 * @author chan
 */
@Component
public class FloorServiceImpl extends BaseServiceImpl<Floor> implements IFloorService{

	@Autowired
	private FloorDao floorDao;

	@Override
	public List<Floor> getFloorByCorpIdAndStatus(Long corpid, Integer status) {
		return floorDao.getFloorByCorpIdAndStatus(corpid, status);
	}

//	@Override
//	public List<Floor> findByStatusNot(Integer status) {
//		return floorDao.findByStatusNot(status);
//	}
//
//	@Override
//	public void updateStatus(Long id) {
//		Floor floor= floorDao.findOne(id);
//		floor.setStatus(0);
//		floorDao.save(floor);
//	}


}
